package com.qianji.petmall.ware.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qianji.petmall.ware.entity.WareSkuEntity;
import com.qianji.petmall.ware.vo.SkuWareHasStockVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存
 * 
 * @author xiaoxin
 * @email 485350978@qq.com
 * @date 2022-01-07 15:25:56
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void UpdateFull(@Param("skuId")Long skuId,@Param("skuNum")Integer skuNum,@Param("wareId")Long wareId);

    Long selectSkuStock(@Param("skuId") Long skuId);

    int doLockStock(@Param("stockVo") SkuWareHasStockVo stockVo);

    void updateLockerStock(@Param("to") SkuWareHasStockVo to);


}
